package protobuf {
	import com.netease.protobuf.*;
	use namespace com.netease.protobuf.used_by_generated_code;
	import com.netease.protobuf.fieldDescriptors.*;
	import flash.utils.Endian;
	import flash.utils.IDataInput;
	import flash.utils.IDataOutput;
	import flash.utils.IExternalizable;
	import flash.errors.IOError;
	import flash.utils.ByteArray;
	// @@protoc_insertion_point(imports)

	// @@protoc_insertion_point(class_metadata)
	public dynamic final class HSPKG_TNMT_START_NTF extends com.netease.protobuf.Message {
		/**
		 *  @private
		 */
		public static const TOURNMENT_ID:FieldDescriptor$TYPE_UINT64 = new FieldDescriptor$TYPE_UINT64("protobuf.HSPKG_TNMT_START_NTF.tournment_id", "tournmentId", (1 << 3) | com.netease.protobuf.WireType.VARINT);

		public var tournmentId:UInt64;

		/**
		 *  @private
		 */
		public static const TABLEID:FieldDescriptor$TYPE_UINT64 = new FieldDescriptor$TYPE_UINT64("protobuf.HSPKG_TNMT_START_NTF.tableid", "tableid", (2 << 3) | com.netease.protobuf.WireType.VARINT);

		public var tableid:UInt64;

		/**
		 *  @private
		 */
		public static const IP:FieldDescriptor$TYPE_BYTES = new FieldDescriptor$TYPE_BYTES("protobuf.HSPKG_TNMT_START_NTF.ip", "ip", (3 << 3) | com.netease.protobuf.WireType.LENGTH_DELIMITED);

		public var ip:flash.utils.ByteArray;

		/**
		 *  @private
		 */
		public static const PORT:FieldDescriptor$TYPE_UINT32 = new FieldDescriptor$TYPE_UINT32("protobuf.HSPKG_TNMT_START_NTF.port", "port", (4 << 3) | com.netease.protobuf.WireType.VARINT);

		public var port:uint;

		/**
		 *  @private
		 */
		override used_by_generated_code final function writeToBuffer(output:com.netease.protobuf.WritingBuffer):void {
			com.netease.protobuf.WriteUtils.writeTag(output, com.netease.protobuf.WireType.VARINT, 1);
			com.netease.protobuf.WriteUtils.write$TYPE_UINT64(output, this.tournmentId);
			com.netease.protobuf.WriteUtils.writeTag(output, com.netease.protobuf.WireType.VARINT, 2);
			com.netease.protobuf.WriteUtils.write$TYPE_UINT64(output, this.tableid);
			com.netease.protobuf.WriteUtils.writeTag(output, com.netease.protobuf.WireType.LENGTH_DELIMITED, 3);
			com.netease.protobuf.WriteUtils.write$TYPE_BYTES(output, this.ip);
			com.netease.protobuf.WriteUtils.writeTag(output, com.netease.protobuf.WireType.VARINT, 4);
			com.netease.protobuf.WriteUtils.write$TYPE_UINT32(output, this.port);
			for (var fieldKey:* in this) {
				super.writeUnknown(output, fieldKey);
			}
		}

		/**
		 *  @private
		 */
		override used_by_generated_code final function readFromSlice(input:flash.utils.IDataInput, bytesAfterSlice:uint):void {
			var tournment_id$count:uint = 0;
			var tableid$count:uint = 0;
			var ip$count:uint = 0;
			var port$count:uint = 0;
			while (input.bytesAvailable > bytesAfterSlice) {
				var tag:uint = com.netease.protobuf.ReadUtils.read$TYPE_UINT32(input);
				switch (tag >> 3) {
				case 1:
					if (tournment_id$count != 0) {
						throw new flash.errors.IOError('Bad data format: HSPKG_TNMT_START_NTF.tournmentId cannot be set twice.');
					}
					++tournment_id$count;
					this.tournmentId = com.netease.protobuf.ReadUtils.read$TYPE_UINT64(input);
					break;
				case 2:
					if (tableid$count != 0) {
						throw new flash.errors.IOError('Bad data format: HSPKG_TNMT_START_NTF.tableid cannot be set twice.');
					}
					++tableid$count;
					this.tableid = com.netease.protobuf.ReadUtils.read$TYPE_UINT64(input);
					break;
				case 3:
					if (ip$count != 0) {
						throw new flash.errors.IOError('Bad data format: HSPKG_TNMT_START_NTF.ip cannot be set twice.');
					}
					++ip$count;
					this.ip = com.netease.protobuf.ReadUtils.read$TYPE_BYTES(input);
					break;
				case 4:
					if (port$count != 0) {
						throw new flash.errors.IOError('Bad data format: HSPKG_TNMT_START_NTF.port cannot be set twice.');
					}
					++port$count;
					this.port = com.netease.protobuf.ReadUtils.read$TYPE_UINT32(input);
					break;
				default:
					super.readUnknown(input, tag);
					break;
				}
			}
		}

	}
}
